package com.shiro.result;

public class CodeMsg {
    private int code;
    private String msg;

    //通用异常
    public static CodeMsg SUCCESS   =  new CodeMsg(0,"success");
    public static CodeMsg SERVICE_ERROR   =  new CodeMsg(500100,"服务端异常");
    //登录模块异常 5002XX
    //贷款模块异常 5003XX
    //投资模块异常 5004XX
    //管理模块异常 5005XX
    //秒杀模块异常 5006XX

    private CodeMsg(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public int getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
